<?php

namespace app\api\model;

class Attention extends Common
{
    static public function lists($user_id, $style = false, $status = false)
    {
        $data = self::where(['user_id' => $user_id, 'sys_channel' => 1])->column('to_user');

        if ($status) {
            $data[] = $user_id;
        }

        if ($style) {
            $data = implode(',', $data);
        }

        return $data;
    }
}
